angular.module('app').config(($stateProvider) => {

    $stateProvider.state('app.tap-click', {
        url         : '/tap-click',
        label       : 'Tap & Click',
        controller  : 'app.tap-click',
        controllerAs: '$ctrl',
        templateUrl : 'view/app/tap-click/tap-click.html'
    });
}).controller('app.tap-click', function () {
    var ctrl = this;
    ctrl.onTap = ()=> {
        console.log('taped!');
    };
});